package com.all.learning.guava.eventbus2.entity;

import com.google.common.eventbus.DeadEvent;
import com.google.common.eventbus.Subscribe;

public class MyEventListener {

	@Subscribe
	public void sub(String message) {
		System.out.println(message + "----线程名字" + Thread.currentThread().getName());
	}

	@Subscribe
	public void listen(DeadEvent event) {
		System.out.println("EventBus发送的消息不是订阅者关心:"+event.getEvent());
		System.out.println(event.getSource());
	}
}
